package cn.tedu.boyou.acticle.mapper;

import cn.tedu.boyou.acticle.domain.StrategyDetail;
import cn.tedu.boyou.acticle.vo.StrategyStatisVO;
import cn.tedu.boyou.common.query.StrategyDetailQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetail record);

    StrategyDetail selectByPrimaryKey(Long id);

    List<StrategyDetail> selectAll(Long destId);

    List<StrategyDetail> selectList();

    int updateByPrimaryKey(StrategyDetail record);

    List<StrategyDetail> selectForList(StrategyDetailQuery qo);

    void updateState(@Param("state") Integer state, @Param("id") Long id);

    void insertStRelationTag(@Param("detailId") Long detailId, @Param("tagId") Long tagId);

    void deleteRelation(Long detailId);

    void updateStatis(StrategyStatisVO statisVo);

    List<StrategyDetail> selectDetailTop5();

}